<?
    $idtl=0;if(isset ($_GET['id'])) $idtl=$_GET['id'];
    $root=$t->laytin_theloai($idtl);
    $nav_root=$t->layroot($idtl);
?>
<div class="site_navigation">
<ul>
    <li><a href="<?=$rootURL?>index.html"><? if($lang=='vi') echo 'Trang chủ'; else echo 'Home page';?></a> </li>
    <li><a href="javascript:void(0);">&raquo; </a> </li>
    <li><a href="javascript:void(0);"><?echo $nav_root['ten_'.$lang];?></a> </li>
</ul>
<div class="c"></div>
</div><!--end .site_navigation-->
<?php
foreach ($root as $row_root) {?>
<div class="main_left_details">
        <div class="main_left_details_title">
            <a href="<?=$rootURL?>root/<?php echo $row_root['id']?>/<?php echo $t->changeTitle($row_root['ten_'.$lang])?>.html"> <?php echo $row_root['ten_'.$lang];?></a>
        </div>
        <div class="main_left_details_form">

                <span class="lt">&ensp;</span>
                <span class="rt">&ensp;</span>
                <span class="lb">&ensp;</span>
                <span class="rb">&ensp;</span>

                <div class="box_news">
                    <?php $id_root=$row_root['id'];
                       $tin=$t->laytour_theloai($id_root);
                       foreach ($tin as $row_tin) {
                    ?>
                    <div class="item_first fl">
                        <div class="image fl">
                            <a href="<?=$rootURL?>chitiet/<?php echo $row_tin['id']?>/<?php echo $t->changeTitle($row_tin['ten_'.$lang])?>.html">
                                <img height="75" width="100" src="<?php echo $row_tin['url_img']?>" alt="" />
                            </a>
                        </div>
                        <div class="content fr">
                            <div class="content_first">
                                <a href="<?=$rootURL?>chitiet/<?php echo $row_tin['id']?>/<?php echo $t->changeTitle($row_tin['ten_'.$lang])?>.html"><?php echo $row_tin['ten_'.$lang]?></a><br>
                                Giá: <strong style="color: black;"><?php echo $row_tin['gia_'.$lang]?></strong><br>
                                <a href="<?=$rootURL?>chitiet/<?php echo $row_tin['id']?>/<?php echo $t->changeTitle($row_tin['ten_'.$lang])?>.html" class="readmore">Xem thêm</a>
                                <div class="c"></div>
                            </div>
                        </div>
                        <div class="c"></div>
                    </div><!--end item_first-->
                     <?php }?>
                    <div class="c"></div>
                </div><!--end .box_news-->

        </div>
</div>
<?php }?>